<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace app\admin\model;

class Department extends \app\BaseModel
{
    protected $name = "department";
    protected $pk = "department_id";
    public function __construct()
    {
        parent::__construct();
    }
    protected static function init()
    {
    }
    public function createDepartment($data)
    {
        return $this->createRow($data);
    }
    public function updateDepartment($filter, $data)
    {
        return $this->updateRow($filter, $data);
    }
    public function delDepartment($filter)
    {
        return $this->delRow($filter);
    }
    public function getDepartment($filter)
    {
        return $this->getRow($filter);
    }
    public function listDepartment($filter, $page_config = ["page" => 1, "page_count" => 20])
    {
        $filter["deleted"] = 0;
        $result = \think\facade\Db::name($this->name)->where($filter)->page($page_congig["page"], $page_config["page_count"])->select();
    }
    public function listDepartmentCount($filter)
    {
        $filter["deleted"] = 0;
        $result = \think\facade\Db::name($this->name)->where($filter)->count();
    }
    public function listDepartmentAll($filter)
    {
        return $this->listRow($filter);
    }
}

?>